package com.herui.iot.data;

import com.alibaba.fastjson.JSON;
import com.herui.sport_care.data.check.DeviceInfo;
import com.herui.sport_care.data.check.EvalUserInfo;
import com.herui.sport_care.data.eval.EvalInfo;

/**
 * Created by amanda.shan on 2022/12/12.
 */
public class SimDataFactory {

    public static EvalInfo getEvalInfo(){
        String s = "{\n" +
                "\t\t\t\"evaluationSchemeId\": 35,\n" +
                "\t\t\t\"name\": \"评估Test123456\",\n" +
                "\t\t\t\"evaluationDate\": \"2022-12-14\",\n" +
                "\t\t\t\"evaluationStartTime\": \"17:11:20\",\n" +
                "\t\t\t\"betaSchemeId\": 1,\n" +
                "\t\t\t\"betaSchemeName\": \"跑台\",\n" +
                "\t\t\t\"agreementId\": 38,\n" +
                "\t\t\t\"agreementName\": \"RAMP协议_斜坡\",\n" +
                "\t\t\t\"evaluationStatus\": \"IN_PROGRESS\",\n" +
                "\t\t\t\"type\": \"TREADMILL_SLOPE\"\n" +
                "\t\t}";

//        s = "{\n" +
//                "\t\t\t\"evaluationSchemeId\": 36,\n" +
//                "\t\t\t\"name\": \"功率车测试\",\n" +
//                "\t\t\t\"evaluationDate\": \"2022-12-17\",\n" +
//                "\t\t\t\"evaluationStartTime\": null,\n" +
//                "\t\t\t\"betaSchemeId\": 2,\n" +
//                "\t\t\t\"betaSchemeName\": \"功率车\",\n" +
//                "\t\t\t\"agreementId\": 10,\n" +
//                "\t\t\t\"agreementName\": \"功率车_斜坡_11W\",\n" +
//                "\t\t\t\"evaluationStatus\": \"NOT_STARTED\",\n" +
//                "\t\t\t\"type\": \"POWER_CAR_SLOPE\"\n" +
//                "\t\t}";
        EvalInfo evalInfo = JSON.parseObject(s, EvalInfo.class);
        return evalInfo;
    }

    public static EvalUserInfo getEvalUserInfo(){
        String s = "{\n" +
                "\t\t\t\"userId\": 30,\n" +
                "\t\t\t\"name\": \"tzzcs\",\n" +
                "\t\t\t\"gender\": \"MALE\",\n" +
                "\t\t\t\"mobile\": \"\",\n" +
                "\t\t\t\"headSculpture\": \"https://thirdwx.qlogo" +
                ".cn/mmopen/vi_32" +
                "/Q0j4TwGTfTJ4GbaLSZhuibNXjXHJFSdHGfDU3C2OpGicrHyNCAsQI9qRwyKy1kIdOjbDmaP29SkSZicEECc6Bkib1g/132\",\n" +
                "\t\t\t\"organName\": \"后端\",\n" +
                "\t\t\t\"userName\": \"123\",\n" +
                "\t\t\t\"randomNumber\": \"SXxf20220100027\",\n" +
                "\t\t\t\"questionStatus\": \"NOTSTART\",\n" +
                "\t\t\t\"informedConsent\": \"NOTSTART\"\n" +
                "\t\t}";
        EvalUserInfo evalUserInfo = JSON.parseObject(s, EvalUserInfo.class);
        return evalUserInfo;
    }

    public static DeviceInfo getEcgDeviceInfo(){
        String s = "{\n" +
                "\t\t\t\"id\": 2,\n" +
                "\t\t\t\"equipmentName\": \"JK心电仪1\",\n" +
                "\t\t\t\"mac\": \"C9E230438418\",\n" +
                "\t\t\t\"secretKey\": null,\n" +
                "\t\t\t\"organId\": 1,\n" +
                "\t\t\t\"equipmentType\": \"ECG_EQUIPMENT\"\n" +
                "\t\t}";
        DeviceInfo deviceInfo = JSON.parseObject(s, DeviceInfo.class);
        return deviceInfo;
    }
}
